// index文件的作用是用来合并reducers
import { combineReducers } from "redux"

import cartReducer from "./cartReducer"
import productsReducer from './productsReducer'

let rootReducer = combineReducers({ // 合并起来
    cartReducer,
    productsReducer
})

export default rootReducer